package com.m2bshop.shop.dao;

import com.m2bshop.shop.pojo.JmfOrder;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface JmfOrderDao {

    /**
     * 查询Awaiting Payment
     */
    List<JmfOrder> findAwaitingPayOrder();

    /**
     * 查询Awaiting Shipment
     */
    List<JmfOrder> findAwaitingShipmentOrder();

    /**
     * 查询Shiped
     */
    List<JmfOrder> findShipedmentOrder();

    /**
     * 查询Completed Orders
     */
    List<JmfOrder> findCompletedOrder();

    /**
     * 查询Cancelled Orders
     */

    List<JmfOrder> findCancelledOrder();

    /**
     * 根据title查询订单
     */
    List<JmfOrder> findJmfOrderByTitle(String jtitle);
}
